
package memory.pack;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;

public class MemoryActivity extends Activity implements OnClickListener{
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        // add new view and connect it to button via event handler:
        View playButton = this.findViewById(R.id.btn_PLAY);
        playButton.setOnClickListener(this);
        View settingsButton = this.findViewById(R.id.btn_SETTINGS);
        settingsButton.setOnClickListener(this);
        View aboutButton = this.findViewById(R.id.btn_ABOUT);
        aboutButton.setOnClickListener(this);
        View highscoreButton = this.findViewById(R.id.btn_HIGHSCORE);
        highscoreButton.setOnClickListener(this);
        View exitButton = this.findViewById(R.id.btn_EXIT);
        exitButton.setOnClickListener(this);
    }
    
    @Override
	public void onClick(View v) {
		Log.i(getLocalClassName(), "PLAY button was clicked");
    }
    
}